package com.image.androidimagebroswer.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.image.androidimagebroswer.R;

/**
 * 获取图片数据：保存数据
 */
public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button button = findViewById(R.id.bt_main);
        button.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.bt_main:
                // TODO 点击进入列表页
                Intent intent = new Intent(MainActivity.this, GridListActivity.class);
                startActivity(intent);

        }
    }
}
